<!doctype html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
</head>
<body>
	<script src="lib/AOP.js"></script>
	<script>
		function test(name){
			console.log(name);
		}
		test("AOP")//打印AOP
		AOP.around("test.*",function(f){
			console.log("before log");
		},function(f){
			console.log("after log")
		});
		AOP.before("test",function(f){
			
		});
	test("AOP1");	
	//	setTimeout(function(){test("aop");},5000);
		
	</script>
</body>
</html>